/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package group2assignone.ucm.manager;

import group2assignone.ucm.UCController;
import group2assignone.view.manager.AddAirportView;
import group2assignone.view.manager.ManagerView;

/**
 * Use Case: Change UI to Manager Add Airport View                         <br>
 * Pre-condition: Manager is logged in and clicks the 'add airport' button.<br>
 * Post-condition: Add airport view is displayed                           <br>
 * 1. system exits the current view                                         <br>
 * 2. System opens the add airport view                                     <br>

 * @author group2
 */
public class UCUIAddAirport implements UCController{

    public void run() {
        //1. system exits the current view
        ManagerView mv = ManagerView.getInstance();
        mv.dispose();
        //2. System opens the add airport view
        AddAirportView view = new AddAirportView();
        view.go();
    }
}
